package com.yidu.drug.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yidu.drug.common.Page;
import com.yidu.drug.model.DrugManagerModel;

public interface DrugManagerModelMapper {
	/**
	 * 删除信息
	 * @param manId 用户id
	 * @return
	 */
    int deleteByPrimaryKey(String manId);

    int insert(DrugManagerModel record);

    int insertSelective(DrugManagerModel record);

    DrugManagerModel selectByPrimaryKey(String manId);
    
    int updateByPrimaryKeySelective(DrugManagerModel record);

    int updateByPrimaryKey(DrugManagerModel record);

	int findTotalRows(DrugManagerModel drugManagerModel);

	List<DrugManagerModel> findLimit(@Param("manager")DrugManagerModel dmm, @Param("page")Page pages);

	DrugManagerModel selectUser(DrugManagerModel us);
	/**
	 * 根据用户名字查询行数
	 * @param us 用户对象
	 * @return 行数
	 */
	Integer selectUsers(DrugManagerModel us);
}